<?php namespace App\Admin\Experience\Experience;

use App\Core\Model as BaseModel;

class Model extends BaseModel {

    protected $table = 'experience_record';
    protected $primaryKey = 'id';

    public function cabinet(){
        return $this->belongsTo('App\Admin\Cabinet\Cabinet\Model', 'cabinet_id', 'id');
    }

    public function storefront(){
        return $this->belongsTo('App\Admin\Storefront\Storefront\Model', 'storefront_id', 'id');
    }

    public function cell(){
        return $this->belongsTo('App\Admin\Cabinet\CabinetCell\Model', 'cell_id', 'id');
    }

    public function goods(){
        return $this->belongsTo('App\Admin\Goods\Goods\Model', 'goods_id', 'id');
    }

    public function user(){
        return $this->belongsTo('App\Admin\User\User\Model', 'user_id', 'id');
    }
}